export const goodsRules = {
	goods_name: [
		{
			required: true,
			message: "商品名称不能为空",
			trigger: "blur",
		}
	],
	goods_price: [
		{
			required: true,
			message: "价格不能为空",
			trigger: "blur",
		},
        {
			type: "number",
			message: "价格不正确",
			trigger: "blur",
		}
	],
    goods_number: [
		{
			required: true,
			message: "商品库存不能为空",
			trigger: "blur",
		},
        {
			type: "number",
			message: "库存数量不正确",
			trigger: "blur",
		}
	],
    goods_weight:[
        {
			required: true,
			message: "商品重量不能为空",
			trigger: "blur",
		},
        {
			type: "number",
			message: "重量不正确",
			trigger: "blur",
		}
    ],
    goods_cat:[
        {
			required: true,
			message: "请选择商品分类",
			trigger: "change",
		},
    ]
}
